Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doug Brott 4 posts 34 karma points
    Apr 24, 2015 @ 21:25
    Doug Brott
    0

    [EASY] Rendering Images with optimal load times

    Our user is using the grid (our first implimentation of it) and using the default image editor. He's uploading an image 3350 px wide(huge) and selecting it. I can use the ?width=265 querystring in the .cshtml to size it down, but my fearless leader is concerned about the server time to resize the image(s). My fearless leader wants us to control the upload size by giving options or by hardcoding 4 different upload sizes and selecting the most appropriate one in the code on rendering the page. I have many questions....Does the ?width=365 cause a server load time delay that is worth worrying about?  Is there a way to create maybe 3 or 4 specific upload sizes? How has anyone else tackled this issue. 

     

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Apr 24, 2015 @ 21:40
    Jeavon Leopold
    103

    Hi Doug,

    Fear not! Using the querystring width variable is using ImageProcessor and the resized image is cached to disk on the first request, so there is no advantage to uploading multiple images at all.

    Jeavon

  • Doug Brott 4 posts 34 karma points
    Apr 24, 2015 @ 23:13
    Doug Brott
    0

    Thank you Jeavon for the quick answer!

Please Sign in or register to post replies

Write your reply to:

Draft